package com.qcby.MyServletDemo;

import com.qcby.servlet.HttpServlet;
import com.qcby.servlet.HttpServletRequest;
import com.qcby.servlet.HttpServletResponse;
import com.qcby.util.ResponseUtil;
import com.qcby.webServlet.WebServlet;

import java.io.IOException;

/************************************
 * @PACKAGE : com.qcby.MyServletDemo
 * @Author    :  叫我老伯
 * @Date    : 2022/6/30 23:14
 * @Desc    :
 ***********************************/
@WebServlet(urlMapping = "/first")
public class FirstServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.GetWrite(ResponseUtil.getResponseHeader200("---------"));
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.GetWrite(ResponseUtil.getResponseHeader200("123456"));
    }
}
